const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: process.env.NODE_ENV === 'production' ? '/ssnydsq_pc' : '/',
  outputDir: 'ssnydsq_pc',
  lintOnSave: process.env.NODE_ENV !== 'production',
  devServer: {
    port: 8099,
    open: false,
    // overlay: {
    //   warnings: false,
    //   errors: true
    // },
    proxy: {
      "/ssnydsq": {
        changeOrigin: true, // 是否跨域
        target: "https://ssnydsq.cqlandcloud.org.cn/",
        // target: "http://172.16.18.123:8036/",
        
        pathRewrite: {
          // 重写路径
        },
      },
    },
  },
})
